import {globalConfigApi} from "@/api/common.js"
export default{
	namespaced: true,
	state: {
		config: {}
	},
	mutations: {
		SET_CONFIG(state, config){
			state.config = config
		}
	},
	actions: {
		initConfig(context, payload){
			globalConfigApi().then(res=>{
				context.commit('SET_CONFIG', res.data)
			})
		}
	}
}